if (NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
  add_unit_test (
    CRITERION
    TARGET test_otel_protobuf_parser
    SOURCES test-otel-protobuf-parser.cpp
    INCLUDES ${OTEL_PROTO_BUILDDIR}
    DEPENDS otel-cpp)

  add_unit_test (
    CRITERION
    TARGET test_otel_protobuf_formatter
    SOURCES test-otel-protobuf-formatter.cpp
    INCLUDES ${OTEL_PROTO_BUILDDIR}
    DEPENDS otel-cpp)

  add_unit_test (
    CRITERION
    TARGET test_syslog_ng_otlp
    SOURCES test-syslog-ng-otlp.cpp
    INCLUDES ${OTEL_PROTO_BUILDDIR}
    DEPENDS otel-cpp)

  add_unit_test (
    CRITERION
    TARGET test_otel_filterx
    SOURCES test-otel-filterx.cpp
    INCLUDES ${OTEL_PROTO_BUILDDIR}
    DEPENDS otel-cpp otel_filterx_logrecord_cpp)
endif ()
